/*
 * AutoCompleteRecordContent.java
 *
 * Copyright(c) 2011
 * Michael Kroez
 * kroez@studiorutton.de
 *
 * All rights reserved.
 *
 * $Id$
 * 
 */

package de.studiorutton.gerengdic.indexeddictionary;


import de.studiorutton.gerengdic.databaseaccess.LanguageAccess.IndexPositionAccess.IndexAll;
import de.studiorutton.tre.AMatchResult;

public class AutoCompleteRecordContent extends AutoCompleteRecord {
	public IndexAll indexAll;
	public AMatchResult matchResult;
	
	public AutoCompleteRecordContent( int errors, IndexAll ia, AMatchResult mr) {
		super(TYPE_CONTENT, errors);
		indexAll = ia;
		matchResult = mr;
	}
	
	@Override
	public String getKey() {
		return indexAll.indexRecord.getKey();
	}
	
	@Override
	public IndexAll getIndexAll() {
		return indexAll;
	}

}
